<template>
  <div class="scheme">
    <div class="scheme_title">
      <p style="margin-right: 20px">教学改革方案</p>
    </div>
    <div class="scheme_section">
      <div class="scheme_section_nav">教学改革</div>
      <div class="scheme_section_content">
        <p v-html="talentsTrainingData.content"></p>
      </div>
    </div>
  </div>
</template>

<script>
import { getTalentsTrainingList } from "@/api/talentsTraining";
export default {
  name: "scheme",
  data() {
    return {
      schemeData: {
        page: 1,
        size: 1,
        data: {
          keyword: "教学改革",
          training: "reformation",
        },
      },
      talentsTrainingData: {
        content: "",
        solution: "",
      },
    };
  },
  created() {},
  mounted() {
    this.getTalentsTrainingList();
  },
  methods: {
    getTalentsTrainingList() {
      getTalentsTrainingList(this.schemeData).then((response) => {
        if (response.data.code === 20000) {
          const { list } = response.data.results;
          this.talentsTrainingData =
            list.length > 0 ? list[0] : { content: "", solution: "" };
        }
      });
    },
  },
};
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.scheme {
  color: #333;

  .scheme_list {
    padding: 0 40px;
    font-weight: bold;
    color: #333;
    background: white;
    height: 40px;
    line-height: 40px;
    border: 1px solid #f1f1f1;
    cursor: pointer;

    &:hover {
      color: #0a7b19;
      background: #f4fff6;
    }
  }

  .is_scheme_list {
    color: #0a7b19;
    background: #f4fff6;
    padding: 0 40px;
    font-weight: bold;
    height: 40px;
    line-height: 40px;
    border: 1px solid #f1f1f1;
    cursor: pointer;
  }

  .scheme_title {
    height: 40px;
    background: #f1f1f1;
    text-align: right;
    line-height: 40px;
    font-weight: bold;
    font-size: 21px;
    color: #0a7b19;
  }

  .scheme_section {
    padding: 20px 0;

    &:last-child {
      margin-bottom: 30px;
    }

    .scheme_section_nav {
      border-left: 3px solid #0a7b19;
      font-weight: bold;
      padding-left: 10px;
    }
    .scheme_section_content {
      margin-top: 20px;
    }
    .scheme_section_img {
      display: flex;
      flex-wrap: wrap;
      margin-top: 16px;

      .scheme_section_img_people {
        margin-right: 20px;
        text-align: center;

        img {
          width: 120px;
          height: 160px;
          background-color: #f1f1f1;
        }

        p {
          width: 100%;
          height: 30px;
          line-height: 30px;
        }
      }
    }
  }
}
</style>
